package com.project.test;

import com.project.boot.service.IStudentService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes =  com.project.boot.BootMain.class)
public class MyMain {

//    @Autowired
//    private IStuService stuService;
//
    @Autowired
    private IStudentService service;

//    @Autowired
//    private IUserService userService;

    @Test
    public void saveUser(){

//        User user = new User();
//        user.setUsername("中国");
//        user.setPwd("999");
//        user.setGrade("超级管理员");
//        userService.save(user);
    }

//    @Test
//    public void findAll(){
//
//    }
}
